function submit_form(value){

	if(value=="s"){
		alert(value);
	}
	if(value=="e"){
		$("#save_type").val("edited");
			alert(value);
	}
	$.post( "../../forms/pupillometry/save_pupillometry.php?"+$("#theform").serialize(), function( data ) {
		//alert( "Data Loaded: " + data );	
	});
	
	$.post( "../../forms/pupillometry/index.php?id="+$("#id").val(), function( data ) {
		alert(data);
		$("#mybody").html(data);
	});
	
}